import config from "@/config"

//系统路由
const routes = [
	{
		name: "layout",
		path: "/",
		component: () => import(/* webpackChunkName: "layout" */ '@/layout'),
		redirect: config.DASHBOARD_URL || '/dashboard',
		children: []
	},
	// {
	// 	path: "/dashboard",
	// 	component: () => import(/* webpackChunkName: "dashboard" */ '@/views/home/index'),
	// 	meta: {
	// 		title: "首页"
	// 	},

	// },
	// {
	//                 "name": "home",
	//                 "path": "/home",
	//                 "meta": {
	//                     "title": "首页",
	//                     "icon": "el-icon-eleme-filled",
	//                     "type": "menu"
	//                 },
	//                 "children": [
	//                     {
	//                         "name": "dashboard",
	//                         "path": "/dashboard",
	//                         "meta": {
	//                             "title": "控制台",
	//                             "icon": "el-icon-menu",
	//                             "affix": true
	//                         },
	//                         "component": "home"
	//                     },
	//                     {
	//                         "name": "userCenter",
	//                         "path": "/usercenter",
	//                         "meta": {
	//                             "title": "帐号信息",
	//                             "icon": "el-icon-user",
	//                             "tag": "NEW"
	//                         },
	//                         "component": "userCenter"
	//                     }
	//                 ]
	//             },
	{
		path: "/login",
		component: () => import(/* webpackChunkName: "login" */ '@/views/login'),
		meta: {
			title: "登录"
		}
	},
	{
		path: "/user_register",
		component: () => import(/* webpackChunkName: "userRegister" */ '@/views/login/userRegister'),
		meta: {
			title: "注册"
		}
	},
	{
		path: "/reset_password",
		component: () => import(/* webpackChunkName: "resetPassword" */ '@/views/login/resetPassword'),
		meta: {
			title: "重置密码"
		}
	}
]

export default routes;
